package com.draven.model.product;

/**
 * CREATE TABLE `products` (
 *   `id` bigint(20) NOT NULL AUTO_INCREMENT,
 *   `name` varchar(255) NOT NULL,
 *   `description` text,
 *   `price` decimal(10,2) NOT NULL,
 *   `stock` int(11) NOT NULL,
 *   `category` varchar(255) DEFAULT NULL,
 *   `imageUrl` varchar(2083) DEFAULT NULL,
 *   `isAvailable` tinyint(1) DEFAULT NULL,
 *   `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
 *   `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
 *   PRIMARY KEY (`id`)
 * ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;
 */
public class ProductDTO {
    private Long id; // 产品ID
    private String name; // 产品名称
    private String description; // 产品描述
    private Double price; // 产品价格
    private Integer stock; // 库存数量
    private String category; // 产品类别
    private String imageUrl; // 产品图片URL
    private Boolean isAvailable; // 是否可用

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public Boolean getAvailable() {
        return isAvailable;
    }

    public void setAvailable(Boolean available) {
        isAvailable = available;
    }
}
